<?php

class PrintRecordModel extends CommonModel {
	protected $tableName = 'print_record';
	protected $_validate = array();
		
	protected $_auto	 =	 array(
		array('printdate','time',self::MODEL_INSERT,'function'),
		);
	

        public function updatePrint($resid){
            $rs = $this->db->execute('UPDATE '.$this->tablePrefix.'meter_record SET printflag=printflag+1  WHERE id='.$resid);
		if($result===false) {
			return false;
		}else {
                                            
                  return true;
		}
        }


}
?>
